package com.qd.panda.gas.station.shell.resp.sc;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 油枪号信息
 *
 * @author sjk
 * @create 2022-10-08 15:27
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
@ToString
public class GasPriceDTO {
    /**
     * 油枪ID
     */
    private Integer id;
    /**
     * 油号
     */
    private Integer octaneNumber;
    /**
     * 油号名称
     */
    private String octaneName;
    /**
     * 油号下属枪号，逗号分割
     */
    private String nozzleNumbers;
    /**
     * 油单价
     */
    private String price;
    /**
     * 油机价
     */
    private String priceGun;
    /**
     * 优惠后的油单价
     */
    private String discount;
    /**
     * 同步过来的数据没有该字段，我们自己根据优惠价和油站价计算出来
     */
    private BigDecimal customerDiscount;
    public void freeData(){
        this.id = null;
        this.octaneNumber = null;
        this.octaneName = null;
        this.nozzleNumbers = null;
        this.price = null;
        this.priceGun = null;
        this.discount = null;
        this.customerDiscount = null;
    }
}